package com.jhgsys.internal.hazard.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author Lujiachen
 * @date 2024-08-13 08:57:26
 */
@Data
@TableName("hazard_examine_dtl_config")
public class HazardExamineDtlConfig implements Serializable {

    /**
     * 主键
     */
    @TableId(value="examine_dtl_config_id",type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String examineDtlConfigId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 安全检查设置Id
     */
    @TableField("examine_config_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String examineConfigId;

    /**
     * 检查类别;1：专项 2：日常
     */
    @TableField("examine_category")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private Integer examineCategory ;

    /**
     * 部门/车间/班组/项目Id
     */
    @TableField("examine_target_Id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String examineTargetId;

    /**
     * 部门/车间/班组/项目名称
     */
    @TableField("examine_target_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String examineTargetName;

    /**
     * 检查次数
     */
    @TableField("examine_number")
    @NotNull(message = "{required}")
    private String examineNumber;

    /**
     * 检查周期;1：周 2：月 3：季度 4：半天 5：年
     */
    @TableField("examine_cycl")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String examineCycl;

    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}